package com.lz.annotations.repeatable0;

import java.lang.annotation.Annotation;

/**
 * App..
 *
 * @author Lizhong
 * @date 2019/5/10
 */
public class App {
    public static void main(String[] args) {
        Annotation[] annotations = T1.class.getAnnotations();
        for (Annotation annotation : annotations) {
            A annotation1 = (A) annotation;
            A1Plus[] value1 = annotation1.value();
            for (A1Plus a1Plus : value1) {

                System.out.println(((A1Plus) a1Plus).value());
            }
        }
        Annotation[] annotations2 = T2.class.getAnnotations();
        for (Annotation annotation : annotations2) {
            System.out.println(((A1)annotation).value());
        }
    }
}

@A1Plus("李四")
@A1Plus("招儿")
class T1 {
}

@A1("sds")
class T2 {
}
